//
//  STDSRenderExporter.h
//  STDRenderSDK
//
//  Created by 陈学明 on 2023/3/16.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "STDSRenderer.h"
NS_ASSUME_NONNULL_BEGIN

@class STDSRenderExporter;
@protocol STDSRenderExporterDelegate <NSObject>
- (void)onReadyForExport:(STDSRenderExporter *)exporter;
- (void)renderExport:(STDSRenderExporter *)exporter renderFinishedWithImage:(UIImage *)image;
@end

@interface STDSRenderExporter : NSObject
@property (nonatomic, strong, readonly) STDSRenderer *renderer;
@property (nonatomic, weak) id<STDSRenderExporterDelegate>delegate;

- (instancetype)initWithCompose:(CGSize)composeSize;

- (void)renderPrograss:(CGFloat)prograss;

- (STDSGLImageParam *)addImageLayerWithImagePath:(NSString *)imagePath;

- (void)addEffectType:(STDSEffectType)effectType;

- (void)destroy;
@end

NS_ASSUME_NONNULL_END
